package com.cema.manage.project.manage.proGoods.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 内容管理表 biz_pro_goods
 *
 * @author reasahi
 * @date 2024-10-13
 */
@TableName(value = "biz_pro_goods")
public class ProGoods extends Model<ProGoods> {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Integer id;
    /**
     * 名称
     */
    @TableField(value = "pg_title")
    private String pgTitle;
    /**
     * 分类Id
     */
    @TableField(value = "pc_id")
    private Integer pcId;
    /**
     * 内容详细
     */
    @TableField(value = "pg_content")
    private String pgContent;
    /**
     * 图片
     */
    @TableField(value = "pg_url")
    private String pgUrl;
    @TableField(value = "pg_money")
    private Integer pgMoney;
    @TableField(value = "pg_wx")
    private String pgWx;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 设置：主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取：主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置：名称
     */
    public void setPgTitle(String pgTitle) {
        if (pgTitle != null) {
            if (pgTitle.trim().isEmpty()) {
                this.pgTitle = null;
            } else {
                this.pgTitle = pgTitle;
            }
        }
    }

    /**
     * 获取：名称
     */
    public String getPgTitle() {
        return pgTitle;
    }

    /**
     * 设置：分类Id
     */
    public void setPcId(Integer pcId) {
        this.pcId = pcId;
    }

    /**
     * 获取：分类Id
     */
    public Integer getPcId() {
        return pcId;
    }

    /**
     * 设置：内容详细
     */
    public void setPgContent(String pgContent) {
        if (pgContent != null) {
            if (pgContent.trim().isEmpty()) {
                this.pgContent = null;
            } else {
                this.pgContent = pgContent;
            }
        }
    }

    /**
     * 获取：内容详细
     */
    public String getPgContent() {
        return pgContent;
    }

    /**
     * 设置：图片
     */
    public void setPgUrl(String pgUrl) {
        if (pgUrl != null) {
            if (pgUrl.trim().isEmpty()) {
                this.pgUrl = null;
            } else {
                this.pgUrl = pgUrl;
            }
        }
    }

    /**
     * 获取：图片
     */
    public String getPgUrl() {
        return pgUrl;
    }

    /**
     * 设置：创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public Integer getPgMoney() {
        return pgMoney;
    }

    public void setPgMoney(Integer pgMoney) {
        this.pgMoney = pgMoney;
    }

    public String getPgWx() {
        return pgWx;
    }

    public void setPgWx(String pgWx) {
        this.pgWx = pgWx;
    }
}

